CopyTo(T[],Int32,Int32,Int32) Method
In This Topic
Copies all the elements of the current one-dimensional System.Array to the specified one-dimensional SparseArray starting at the specified destination SparseArray index. The index is specified as a 32-bit integer.
Syntax
'Declaration
Public Overloads Sub CopyTo( _
ByVal () As , _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer _
)
'Usage
Dim instance As SparseArray(Of T)
Dim array() As
Dim arrayIndex As Integer
Dim length As Integer
Dim startCopyingIndex As Integer
instance.CopyTo(array, arrayIndex, length, startCopyingIndex)
public void CopyTo(
[] ,
int ,
int ,
int
)
Parameters
- array
- The one-dimensional System.Array that is the destination of the elements copied from the current SparseArray.
- arrayIndex
- A 32-bit integer that represents the index in array at which copying begins.
- length
- The number of elements will be copied.
- startCopyingIndex
- A 32-bit integer value indicatese the start index of which copying begins.
See Also